<?php
/**
 *
 * @author Konovalov Maxim aka ZloY max.zloy@gmail.com
 * 
 */
class Zend_View_Helper_Comment {
	public $view;
	public function comment(array $comment) {
		$html = "
				<div class=\"comment\" style=\"margin-left : " . $comment['level'] * 5 . "%\">
				 <div class=\"box-nick\"> 
				 <div class=\"image2\"><img src=\"/images/ico-42.gif\" alt=\"\" /></div> 
				 <a href=\"#\">Nickname</a> 
				 <span>{$comment['date']}</span> 
				</div> 
				<p>{$comment['message']}</p> 
				<ul><li><a href=\"/comment/add/id/{$comment['id']}/item/place/\" class=\"answer\">ответить</a></li></ul>
				</div>";
		return $html;
	}
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
	}
}